/**
 * @description 用户部门管理
 * @author zhu_liangyu
 * @since 2021/12/23
 */
import { OrgServiceApi } from "./_org";
import { AxiosResponse } from "axios";
import service from "@/api";
import { SystemParam } from "@whjxtech/jxtech-component";

class ManagerServiceApi extends OrgServiceApi {
  fetchRoleList(queryParam?: SystemParam | null, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/fetchRoleList";
    return service.get(url, { params: { ...params, ...queryParam } });
  }

  fetchDeptRoleList(queryParam?: SystemParam | null, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/fetchDeptRoleList";
    return service.get(url, { params: { ...params, ...queryParam } });
  }
}
const managerServiceApi = new ManagerServiceApi("/ManagerService");

export default managerServiceApi;
